#ifndef OPER_MYSQL_H
#define OPER_MYSQL_H

#include"mysql.h"

int connect_mysql(
	MYSQL *mysql,
	const char *host,
	const char *user,
	const char *passwd,
	const char *db,
	unsigned int port,
	const char *unix_socket,
	unsigned long client_flag);

int do_keystore(unsigned int idlen, unsigned char *id, unsigned int dlen, unsigned char *d);

int do_keyget(unsigned int idlen, unsigned char *id, unsigned int *dlen, unsigned char *d);

#endif